package com.jack.xiaoer.service.impl;

import com.jack.xiaoer.dao.UserMapper;
import com.jack.xiaoer.entity.User;
import com.jack.xiaoer.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Jackaroo Zhang on 2018/11/13.
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(Long id) {
        return userMapper.selectById(id);
    }
}
